package com.enuo.controller;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.enuo.utils.AjaxMsg;

/**
 * @ClassName: CommonController 
 * @Description: TODO(公共) 
 * @author Charles.Tao 
 * @date 2017年9月5日 下午4:57:05 
 * @version 1.0
 */
@Controller
@RequestMapping("/common")
public class CommonController extends BaseController
{
    /**
     * @Title: upload 
     * @Description: TODO(上传) 
     * @param @param file
     * @param @return 设定文件 
     * @return String 返回类型 
     * @throws
     */
    @RequestMapping(value = "/index", method = RequestMethod.POST)
    @ResponseBody
    public String upload()
    {
        Subject subject = SecurityUtils.getSubject();
        System.out.println(subject.isAuthenticated());
        System.out.println("1222222222222222");
        return AjaxMsg.success();
    }
    
}
